﻿using System.Web.Mvc;

namespace Actya.Web.Infrastructure
{
	public class CmsAdminAreaRegistration : AreaRegistration
	{
		public override void RegisterArea(AreaRegistrationContext context)
		{
			context.MapRoute(
				Constants.CmsAdminAreaRouteName,
				Constants.CmsAdminAreaName + "/{controller}/{action}/{id}",
				new { controller = "Pages", action = "Index", id = "", theme = "Admin" },
				new[] {"Actya.Web.Controllers.CmsAdmin"}
				);
		}

		public override string AreaName
		{
			get { return Constants.CmsAdminAreaName; }
		}
	}
}